package com.examination.system.administrator.dao;

import com.examination.system.administration.Nation;
import com.examination.system.administration.response.DeleteAdministrationResult;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author 寇淇芮
 * @Date 2019/8/24 22:45
 */
@Mapper
@ResponseBody
public interface NationMapper {
    @Delete("DELETE FROM nation WHERE id = #{id}")
    int delectNationById(@Param("id") String id);

    @Select("SELECT * FROM nation")
    Page<Nation> findAll();
}
